xen/arm: domain_build: Don't expose IOMMU specific properties to hwdom
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Wed, 16 Oct 2019 10:08:07 +0000 (13:08 +0300)
committerJulien Grall <julien.grall@arm.com>
Thu, 24 Oct 2019 12:28:02 +0000 (13:28 +0100)
commit818927ecfb133ca405b07336a8543e21fc4be30f
tree0f85708099e7cbf9d859dd395f593e958174f51f
parent3f82eb9740cacf417576387c398c9a543ab05c60
xen/arm: domain_build: Don't expose IOMMU specific properties to hwdom

We always skip the IOMMU device when creating DT for hwdom if there is
an appropriate driver for it in Xen (device_get_class(iommu_node)
returns DEVICE_IOMMU). So, even if it is not used by Xen it will be skipped.

We should also skip the IOMMU specific properties of the master device
behind that IOMMU in order to avoid exposing an half complete IOMMU
bindings to hwdom.

According to the Linux's docs:
1. Documentation/devicetree/bindings/iommu/iommu.txt
2. Documentation/devicetree/bindings/pci/pci-iommu.txt

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/arm/domain_build.c